
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mytools;

import com.opensymphony.xwork2.ActionSupport;

/**

 *

 * @author wl

 */
public class examdeletemany extends ActionSupport {

    private String[] eid;
    private examDAO ed;

    public examdeletemany() {
    }

    public String execute() throws Exception {

        setEd(new examDAO());
        if (getEid() != null) {
            for (int i = 0; i < getEid().length; i++) {
                getEd().deleteexam(Integer.parseInt(getEid()[i]));
            }
        }
        return SUCCESS;

    }

    /**
     * @return the eid
     */
    public String[] getEid() {
        return eid;
    }

    /**
     * @param eid the eid to set
     */
    public void setEid(String[] eid) {
        this.eid = eid;
    }

    /**
     * @return the ed
     */
    public examDAO getEd() {
        return ed;
    }

    /**
     * @param ed the ed to set
     */
    public void setEd(examDAO ed) {
        this.ed = ed;
    }
}
